/**
 * <copyright>
 *
 * Copyright (c) 2011 Zeligsoft (2009) Limited
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: 
 *   Zeligsoft (2009) Limited - Initial API and implementation
 *
 * </copyright>
 *
 */
package org.omg.deployment.impl;

import java.math.BigInteger;

import java.util.Collection;

import javax.xml.namespace.QName;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;

import org.eclipse.emf.ecore.util.BasicFeatureMap;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.InternalEList;

import org.omg.deployment.Any;
import org.omg.deployment.DataType;
import org.omg.deployment.DataValue;
import org.omg.deployment.DeploymentPackage;
import org.omg.deployment.NamedValue;

import org.omg.xmi.Extension;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Data Value</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getGroup <em>Group</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getShort <em>Short</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getLong <em>Long</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getUshort <em>Ushort</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getUlong <em>Ulong</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getFloat <em>Float</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getDouble <em>Double</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getBoolean <em>Boolean</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getOctet <em>Octet</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getOpaque <em>Opaque</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getObjref <em>Objref</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getEnum <em>Enum</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getString <em>String</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getLonglong <em>Longlong</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getUlonglong <em>Ulonglong</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getLongdouble <em>Longdouble</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getFixed <em>Fixed</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getAny <em>Any</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getTypecode <em>Typecode</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getElement <em>Element</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getDiscriminator <em>Discriminator</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getValue <em>Value</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getBoxedValue <em>Boxed Value</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getMember <em>Member</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getExtension <em>Extension</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getHref <em>Href</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getId <em>Id</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getIdref <em>Idref</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getLabel <em>Label</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getType <em>Type</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getUuid <em>Uuid</em>}</li>
 *   <li>{@link org.omg.deployment.impl.DataValueImpl#getVersion <em>Version</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class DataValueImpl extends EObjectImpl implements DataValue {
	/**
	 * The cached value of the '{@link #getGroup() <em>Group</em>}' attribute list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getGroup()
	 * @generated
	 * @ordered
	 */
	protected FeatureMap group;

	/**
	 * The default value of the '{@link #getHref() <em>Href</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getHref()
	 * @generated
	 * @ordered
	 */
	protected static final String HREF_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getHref() <em>Href</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getHref()
	 * @generated
	 * @ordered
	 */
	protected String href = HREF_EDEFAULT;

	/**
	 * The default value of the '{@link #getId() <em>Id</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getId()
	 * @generated
	 * @ordered
	 */
	protected static final String ID_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getId()
	 * @generated
	 * @ordered
	 */
	protected String id = ID_EDEFAULT;

	/**
	 * The default value of the '{@link #getIdref() <em>Idref</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getIdref()
	 * @generated
	 * @ordered
	 */
	protected static final String IDREF_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getIdref() <em>Idref</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getIdref()
	 * @generated
	 * @ordered
	 */
	protected String idref = IDREF_EDEFAULT;

	/**
	 * The default value of the '{@link #getLabel() <em>Label</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getLabel()
	 * @generated
	 * @ordered
	 */
	protected static final String LABEL_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getLabel() <em>Label</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getLabel()
	 * @generated
	 * @ordered
	 */
	protected String label = LABEL_EDEFAULT;

	/**
	 * The default value of the '{@link #getType() <em>Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getType()
	 * @generated
	 * @ordered
	 */
	protected static final QName TYPE_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getType()
	 * @generated
	 * @ordered
	 */
	protected QName type = TYPE_EDEFAULT;

	/**
	 * The default value of the '{@link #getUuid() <em>Uuid</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getUuid()
	 * @generated
	 * @ordered
	 */
	protected static final String UUID_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getUuid() <em>Uuid</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getUuid()
	 * @generated
	 * @ordered
	 */
	protected String uuid = UUID_EDEFAULT;

	/**
	 * The default value of the '{@link #getVersion() <em>Version</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getVersion()
	 * @generated
	 * @ordered
	 */
	protected static final String VERSION_EDEFAULT = "2.1";

	/**
	 * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getVersion()
	 * @generated
	 * @ordered
	 */
	protected String version = VERSION_EDEFAULT;

	/**
	 * This is true if the Version attribute has been set.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 * @ordered
	 */
	protected boolean versionESet;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DataValueImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return DeploymentPackage.eINSTANCE.getDataValue();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FeatureMap getGroup() {
		if (group == null) {
			group = new BasicFeatureMap(this,
					DeploymentPackage.DATA_VALUE__GROUP);
		}
		return group;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Short> getShort() {
		return getGroup()
				.list(DeploymentPackage.eINSTANCE.getDataValue_Short());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Integer> getLong() {
		return getGroup().list(DeploymentPackage.eINSTANCE.getDataValue_Long());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Integer> getUshort() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Ushort());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Long> getUlong() {
		return getGroup()
				.list(DeploymentPackage.eINSTANCE.getDataValue_Ulong());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Float> getFloat() {
		return getGroup()
				.list(DeploymentPackage.eINSTANCE.getDataValue_Float());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Double> getDouble() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Double());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Boolean> getBoolean() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Boolean());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Short> getOctet() {
		return getGroup()
				.list(DeploymentPackage.eINSTANCE.getDataValue_Octet());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<byte[]> getOpaque() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Opaque());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<String> getObjref() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Objref());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<String> getEnum() {
		return getGroup().list(DeploymentPackage.eINSTANCE.getDataValue_Enum());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<String> getString() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_String());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Long> getLonglong() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Longlong());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<BigInteger> getUlonglong() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Ulonglong());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Double> getLongdouble() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Longdouble());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<String> getFixed() {
		return getGroup()
				.list(DeploymentPackage.eINSTANCE.getDataValue_Fixed());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Any> getAny() {
		return getGroup().list(DeploymentPackage.eINSTANCE.getDataValue_Any());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<DataType> getTypecode() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Typecode());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<DataValue> getElement() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Element());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<DataValue> getDiscriminator() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Discriminator());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<DataValue> getValue() {
		return getGroup()
				.list(DeploymentPackage.eINSTANCE.getDataValue_Value());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<DataValue> getBoxedValue() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_BoxedValue());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<NamedValue> getMember() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Member());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Extension> getExtension() {
		return getGroup().list(
				DeploymentPackage.eINSTANCE.getDataValue_Extension());
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getHref() {
		return href;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setHref(String newHref) {
		String oldHref = href;
		href = newHref;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET,
					DeploymentPackage.DATA_VALUE__HREF, oldHref, href));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getId() {
		return id;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setId(String newId) {
		String oldId = id;
		id = newId;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET,
					DeploymentPackage.DATA_VALUE__ID, oldId, id));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getIdref() {
		return idref;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setIdref(String newIdref) {
		String oldIdref = idref;
		idref = newIdref;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET,
					DeploymentPackage.DATA_VALUE__IDREF, oldIdref, idref));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLabel() {
		return label;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setLabel(String newLabel) {
		String oldLabel = label;
		label = newLabel;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET,
					DeploymentPackage.DATA_VALUE__LABEL, oldLabel, label));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public QName getType() {
		return type;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setType(QName newType) {
		QName oldType = type;
		type = newType;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET,
					DeploymentPackage.DATA_VALUE__TYPE, oldType, type));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getUuid() {
		return uuid;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setUuid(String newUuid) {
		String oldUuid = uuid;
		uuid = newUuid;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET,
					DeploymentPackage.DATA_VALUE__UUID, oldUuid, uuid));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getVersion() {
		return version;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setVersion(String newVersion) {
		String oldVersion = version;
		version = newVersion;
		boolean oldVersionESet = versionESet;
		versionESet = true;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET,
					DeploymentPackage.DATA_VALUE__VERSION, oldVersion, version,
					!oldVersionESet));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void unsetVersion() {
		String oldVersion = version;
		boolean oldVersionESet = versionESet;
		version = VERSION_EDEFAULT;
		versionESet = false;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.UNSET,
					DeploymentPackage.DATA_VALUE__VERSION, oldVersion,
					VERSION_EDEFAULT, oldVersionESet));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isSetVersion() {
		return versionESet;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public NotificationChain eInverseRemove(InternalEObject otherEnd,
			int featureID, NotificationChain msgs) {
		switch (featureID) {
		case DeploymentPackage.DATA_VALUE__GROUP:
			return ((InternalEList<?>) getGroup()).basicRemove(otherEnd, msgs);
		case DeploymentPackage.DATA_VALUE__ANY:
			return ((InternalEList<?>) getAny()).basicRemove(otherEnd, msgs);
		case DeploymentPackage.DATA_VALUE__TYPECODE:
			return ((InternalEList<?>) getTypecode()).basicRemove(otherEnd,
					msgs);
		case DeploymentPackage.DATA_VALUE__ELEMENT:
			return ((InternalEList<?>) getElement())
					.basicRemove(otherEnd, msgs);
		case DeploymentPackage.DATA_VALUE__DISCRIMINATOR:
			return ((InternalEList<?>) getDiscriminator()).basicRemove(
					otherEnd, msgs);
		case DeploymentPackage.DATA_VALUE__VALUE:
			return ((InternalEList<?>) getValue()).basicRemove(otherEnd, msgs);
		case DeploymentPackage.DATA_VALUE__BOXED_VALUE:
			return ((InternalEList<?>) getBoxedValue()).basicRemove(otherEnd,
					msgs);
		case DeploymentPackage.DATA_VALUE__MEMBER:
			return ((InternalEList<?>) getMember()).basicRemove(otherEnd, msgs);
		case DeploymentPackage.DATA_VALUE__EXTENSION:
			return ((InternalEList<?>) getExtension()).basicRemove(otherEnd,
					msgs);
		}
		return super.eInverseRemove(otherEnd, featureID, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
		case DeploymentPackage.DATA_VALUE__GROUP:
			if (coreType)
				return getGroup();
			return ((FeatureMap.Internal) getGroup()).getWrapper();
		case DeploymentPackage.DATA_VALUE__SHORT:
			return getShort();
		case DeploymentPackage.DATA_VALUE__LONG:
			return getLong();
		case DeploymentPackage.DATA_VALUE__USHORT:
			return getUshort();
		case DeploymentPackage.DATA_VALUE__ULONG:
			return getUlong();
		case DeploymentPackage.DATA_VALUE__FLOAT:
			return getFloat();
		case DeploymentPackage.DATA_VALUE__DOUBLE:
			return getDouble();
		case DeploymentPackage.DATA_VALUE__BOOLEAN:
			return getBoolean();
		case DeploymentPackage.DATA_VALUE__OCTET:
			return getOctet();
		case DeploymentPackage.DATA_VALUE__OPAQUE:
			return getOpaque();
		case DeploymentPackage.DATA_VALUE__OBJREF:
			return getObjref();
		case DeploymentPackage.DATA_VALUE__ENUM:
			return getEnum();
		case DeploymentPackage.DATA_VALUE__STRING:
			return getString();
		case DeploymentPackage.DATA_VALUE__LONGLONG:
			return getLonglong();
		case DeploymentPackage.DATA_VALUE__ULONGLONG:
			return getUlonglong();
		case DeploymentPackage.DATA_VALUE__LONGDOUBLE:
			return getLongdouble();
		case DeploymentPackage.DATA_VALUE__FIXED:
			return getFixed();
		case DeploymentPackage.DATA_VALUE__ANY:
			return getAny();
		case DeploymentPackage.DATA_VALUE__TYPECODE:
			return getTypecode();
		case DeploymentPackage.DATA_VALUE__ELEMENT:
			return getElement();
		case DeploymentPackage.DATA_VALUE__DISCRIMINATOR:
			return getDiscriminator();
		case DeploymentPackage.DATA_VALUE__VALUE:
			return getValue();
		case DeploymentPackage.DATA_VALUE__BOXED_VALUE:
			return getBoxedValue();
		case DeploymentPackage.DATA_VALUE__MEMBER:
			return getMember();
		case DeploymentPackage.DATA_VALUE__EXTENSION:
			return getExtension();
		case DeploymentPackage.DATA_VALUE__HREF:
			return getHref();
		case DeploymentPackage.DATA_VALUE__ID:
			return getId();
		case DeploymentPackage.DATA_VALUE__IDREF:
			return getIdref();
		case DeploymentPackage.DATA_VALUE__LABEL:
			return getLabel();
		case DeploymentPackage.DATA_VALUE__TYPE:
			return getType();
		case DeploymentPackage.DATA_VALUE__UUID:
			return getUuid();
		case DeploymentPackage.DATA_VALUE__VERSION:
			return getVersion();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
		case DeploymentPackage.DATA_VALUE__GROUP:
			((FeatureMap.Internal) getGroup()).set(newValue);
			return;
		case DeploymentPackage.DATA_VALUE__SHORT:
			getShort().clear();
			getShort().addAll((Collection<? extends Short>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__LONG:
			getLong().clear();
			getLong().addAll((Collection<? extends Integer>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__USHORT:
			getUshort().clear();
			getUshort().addAll((Collection<? extends Integer>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__ULONG:
			getUlong().clear();
			getUlong().addAll((Collection<? extends Long>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__FLOAT:
			getFloat().clear();
			getFloat().addAll((Collection<? extends Float>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__DOUBLE:
			getDouble().clear();
			getDouble().addAll((Collection<? extends Double>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__BOOLEAN:
			getBoolean().clear();
			getBoolean().addAll((Collection<? extends Boolean>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__OCTET:
			getOctet().clear();
			getOctet().addAll((Collection<? extends Short>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__OPAQUE:
			getOpaque().clear();
			getOpaque().addAll((Collection<? extends byte[]>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__OBJREF:
			getObjref().clear();
			getObjref().addAll((Collection<? extends String>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__ENUM:
			getEnum().clear();
			getEnum().addAll((Collection<? extends String>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__STRING:
			getString().clear();
			getString().addAll((Collection<? extends String>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__LONGLONG:
			getLonglong().clear();
			getLonglong().addAll((Collection<? extends Long>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__ULONGLONG:
			getUlonglong().clear();
			getUlonglong().addAll((Collection<? extends BigInteger>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__LONGDOUBLE:
			getLongdouble().clear();
			getLongdouble().addAll((Collection<? extends Double>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__FIXED:
			getFixed().clear();
			getFixed().addAll((Collection<? extends String>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__ANY:
			getAny().clear();
			getAny().addAll((Collection<? extends Any>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__TYPECODE:
			getTypecode().clear();
			getTypecode().addAll((Collection<? extends DataType>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__ELEMENT:
			getElement().clear();
			getElement().addAll((Collection<? extends DataValue>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__DISCRIMINATOR:
			getDiscriminator().clear();
			getDiscriminator().addAll(
					(Collection<? extends DataValue>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__VALUE:
			getValue().clear();
			getValue().addAll((Collection<? extends DataValue>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__BOXED_VALUE:
			getBoxedValue().clear();
			getBoxedValue().addAll((Collection<? extends DataValue>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__MEMBER:
			getMember().clear();
			getMember().addAll((Collection<? extends NamedValue>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__EXTENSION:
			getExtension().clear();
			getExtension().addAll((Collection<? extends Extension>) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__HREF:
			setHref((String) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__ID:
			setId((String) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__IDREF:
			setIdref((String) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__LABEL:
			setLabel((String) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__TYPE:
			setType((QName) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__UUID:
			setUuid((String) newValue);
			return;
		case DeploymentPackage.DATA_VALUE__VERSION:
			setVersion((String) newValue);
			return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
		case DeploymentPackage.DATA_VALUE__GROUP:
			getGroup().clear();
			return;
		case DeploymentPackage.DATA_VALUE__SHORT:
			getShort().clear();
			return;
		case DeploymentPackage.DATA_VALUE__LONG:
			getLong().clear();
			return;
		case DeploymentPackage.DATA_VALUE__USHORT:
			getUshort().clear();
			return;
		case DeploymentPackage.DATA_VALUE__ULONG:
			getUlong().clear();
			return;
		case DeploymentPackage.DATA_VALUE__FLOAT:
			getFloat().clear();
			return;
		case DeploymentPackage.DATA_VALUE__DOUBLE:
			getDouble().clear();
			return;
		case DeploymentPackage.DATA_VALUE__BOOLEAN:
			getBoolean().clear();
			return;
		case DeploymentPackage.DATA_VALUE__OCTET:
			getOctet().clear();
			return;
		case DeploymentPackage.DATA_VALUE__OPAQUE:
			getOpaque().clear();
			return;
		case DeploymentPackage.DATA_VALUE__OBJREF:
			getObjref().clear();
			return;
		case DeploymentPackage.DATA_VALUE__ENUM:
			getEnum().clear();
			return;
		case DeploymentPackage.DATA_VALUE__STRING:
			getString().clear();
			return;
		case DeploymentPackage.DATA_VALUE__LONGLONG:
			getLonglong().clear();
			return;
		case DeploymentPackage.DATA_VALUE__ULONGLONG:
			getUlonglong().clear();
			return;
		case DeploymentPackage.DATA_VALUE__LONGDOUBLE:
			getLongdouble().clear();
			return;
		case DeploymentPackage.DATA_VALUE__FIXED:
			getFixed().clear();
			return;
		case DeploymentPackage.DATA_VALUE__ANY:
			getAny().clear();
			return;
		case DeploymentPackage.DATA_VALUE__TYPECODE:
			getTypecode().clear();
			return;
		case DeploymentPackage.DATA_VALUE__ELEMENT:
			getElement().clear();
			return;
		case DeploymentPackage.DATA_VALUE__DISCRIMINATOR:
			getDiscriminator().clear();
			return;
		case DeploymentPackage.DATA_VALUE__VALUE:
			getValue().clear();
			return;
		case DeploymentPackage.DATA_VALUE__BOXED_VALUE:
			getBoxedValue().clear();
			return;
		case DeploymentPackage.DATA_VALUE__MEMBER:
			getMember().clear();
			return;
		case DeploymentPackage.DATA_VALUE__EXTENSION:
			getExtension().clear();
			return;
		case DeploymentPackage.DATA_VALUE__HREF:
			setHref(HREF_EDEFAULT);
			return;
		case DeploymentPackage.DATA_VALUE__ID:
			setId(ID_EDEFAULT);
			return;
		case DeploymentPackage.DATA_VALUE__IDREF:
			setIdref(IDREF_EDEFAULT);
			return;
		case DeploymentPackage.DATA_VALUE__LABEL:
			setLabel(LABEL_EDEFAULT);
			return;
		case DeploymentPackage.DATA_VALUE__TYPE:
			setType(TYPE_EDEFAULT);
			return;
		case DeploymentPackage.DATA_VALUE__UUID:
			setUuid(UUID_EDEFAULT);
			return;
		case DeploymentPackage.DATA_VALUE__VERSION:
			unsetVersion();
			return;
		}
		super.eUnset(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
		case DeploymentPackage.DATA_VALUE__GROUP:
			return group != null && !group.isEmpty();
		case DeploymentPackage.DATA_VALUE__SHORT:
			return !getShort().isEmpty();
		case DeploymentPackage.DATA_VALUE__LONG:
			return !getLong().isEmpty();
		case DeploymentPackage.DATA_VALUE__USHORT:
			return !getUshort().isEmpty();
		case DeploymentPackage.DATA_VALUE__ULONG:
			return !getUlong().isEmpty();
		case DeploymentPackage.DATA_VALUE__FLOAT:
			return !getFloat().isEmpty();
		case DeploymentPackage.DATA_VALUE__DOUBLE:
			return !getDouble().isEmpty();
		case DeploymentPackage.DATA_VALUE__BOOLEAN:
			return !getBoolean().isEmpty();
		case DeploymentPackage.DATA_VALUE__OCTET:
			return !getOctet().isEmpty();
		case DeploymentPackage.DATA_VALUE__OPAQUE:
			return !getOpaque().isEmpty();
		case DeploymentPackage.DATA_VALUE__OBJREF:
			return !getObjref().isEmpty();
		case DeploymentPackage.DATA_VALUE__ENUM:
			return !getEnum().isEmpty();
		case DeploymentPackage.DATA_VALUE__STRING:
			return !getString().isEmpty();
		case DeploymentPackage.DATA_VALUE__LONGLONG:
			return !getLonglong().isEmpty();
		case DeploymentPackage.DATA_VALUE__ULONGLONG:
			return !getUlonglong().isEmpty();
		case DeploymentPackage.DATA_VALUE__LONGDOUBLE:
			return !getLongdouble().isEmpty();
		case DeploymentPackage.DATA_VALUE__FIXED:
			return !getFixed().isEmpty();
		case DeploymentPackage.DATA_VALUE__ANY:
			return !getAny().isEmpty();
		case DeploymentPackage.DATA_VALUE__TYPECODE:
			return !getTypecode().isEmpty();
		case DeploymentPackage.DATA_VALUE__ELEMENT:
			return !getElement().isEmpty();
		case DeploymentPackage.DATA_VALUE__DISCRIMINATOR:
			return !getDiscriminator().isEmpty();
		case DeploymentPackage.DATA_VALUE__VALUE:
			return !getValue().isEmpty();
		case DeploymentPackage.DATA_VALUE__BOXED_VALUE:
			return !getBoxedValue().isEmpty();
		case DeploymentPackage.DATA_VALUE__MEMBER:
			return !getMember().isEmpty();
		case DeploymentPackage.DATA_VALUE__EXTENSION:
			return !getExtension().isEmpty();
		case DeploymentPackage.DATA_VALUE__HREF:
			return HREF_EDEFAULT == null ? href != null : !HREF_EDEFAULT
					.equals(href);
		case DeploymentPackage.DATA_VALUE__ID:
			return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
		case DeploymentPackage.DATA_VALUE__IDREF:
			return IDREF_EDEFAULT == null ? idref != null : !IDREF_EDEFAULT
					.equals(idref);
		case DeploymentPackage.DATA_VALUE__LABEL:
			return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT
					.equals(label);
		case DeploymentPackage.DATA_VALUE__TYPE:
			return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT
					.equals(type);
		case DeploymentPackage.DATA_VALUE__UUID:
			return UUID_EDEFAULT == null ? uuid != null : !UUID_EDEFAULT
					.equals(uuid);
		case DeploymentPackage.DATA_VALUE__VERSION:
			return isSetVersion();
		}
		return super.eIsSet(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		if (eIsProxy())
			return super.toString();

		StringBuffer result = new StringBuffer(super.toString());
		result.append(" (group: ");
		result.append(group);
		result.append(", href: ");
		result.append(href);
		result.append(", id: ");
		result.append(id);
		result.append(", idref: ");
		result.append(idref);
		result.append(", label: ");
		result.append(label);
		result.append(", type: ");
		result.append(type);
		result.append(", uuid: ");
		result.append(uuid);
		result.append(", version: ");
		if (versionESet)
			result.append(version);
		else
			result.append("<unset>");
		result.append(')');
		return result.toString();
	}

} //DataValueImpl
